package com.fintecher.service.serviceImpl;

import com.fintecher.dao.IUserRoleDao;
import com.fintecher.pojo.UserRole;
import com.fintecher.service.IUserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/2/8.
 */
@Service("userRoleService")
public class UserRoleServiceImpl implements IUserRoleService {
    @Resource

    private IUserRoleDao userRoleDao;

    public boolean addUserRole(UserRole userRole) {
        if(userRole != null){
            userRoleDao.addUserRole(userRole);
        }
        return true;
    }
}
